/*    */ package com.evitch.csvtrade.cmd;
/*    */ 
/*    */ public class TradeOperation
/*    */ {
/* 49 */   public static final TradeOperation OP_BUY = new TradeOperation(0);
/*    */   public static final int _OP_BUY = 0;
/* 54 */   public static final TradeOperation OP_SELL = new TradeOperation(1);
/*    */   public static final int _OP_SELL = 1;
/* 59 */   public static final TradeOperation OP_BUYLIMIT = new TradeOperation(2);
/*    */   public static final int _OP_BUYLIMIT = 2;
/* 64 */   public static final TradeOperation OP_SELLLIMIT = new TradeOperation(3);
/*    */   public static final int _OP_SELLLIMIT = 3;
/* 69 */   public static final TradeOperation OP_BUYSTOP = new TradeOperation(4);
/*    */   public static final int _OP_BUYSTOP = 4;
/* 74 */   public static final TradeOperation OP_SELLSTOP = new TradeOperation(5);
/*    */   public static final int _OP_SELLSTOP = 5;
/*    */   public int val;
/*    */ 
/*    */   private TradeOperation(int val)
/*    */   {
/* 78 */     this.val = val;
/*    */   }
/*    */   public static TradeOperation getTradeOperation(int val) {
/* 81 */     switch (val) {
/*    */     case 0:
/* 83 */       return OP_BUY;
/*    */     case 1:
/* 84 */       return OP_SELL;
/*    */     case 2:
/* 85 */       return OP_BUYLIMIT;
/*    */     case 3:
/* 86 */       return OP_SELLLIMIT;
/*    */     case 4:
/* 87 */       return OP_BUYSTOP;
/*    */     case 5:
/* 88 */       return OP_SELLSTOP;
/* 89 */     }return null;
/*    */   }
/*    */ }

/* Location:           C:\Users\froge\workspace\jfx126_bin\lib\jfx.jar
 * Qualified Name:     com.jfx.TradeOperation
 * JD-Core Version:    0.6.0
 */